package com.hopu.iocdemo1;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

//加该注解是为了被Spring扫描到
@Qualifier("amd")
@Component
public class AMDCpu implements ICpu {
    @Override
    public void run() {
        System.out.println("使用AMD的CPU进行运算");
    }
}
